import './assets/main.css'
import { createApp } from 'vue'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import App from './App.vue'


//========= start 小程序引入模块 ====================//
/* import './assets/mini_program/main.css'
import { Device } from './mini_program/core/device/device.js'
import { Application } from './mini_program/core/application';
import { AppManager } from "./mini_program/core/appManager"; */
//========= end 小程序引入模块 ====================//
import config from './mp.config';

if(config.mainDev){
    
    /* const appInfo = {appId:202410281411,path:'pages/index/index'};
    
    const dev = new Device();
    
    const wx = new Application();
    
    dev.open(wx);

    
    AppManager.openApp({
        appId: appInfo.appId,
        path: appInfo.path,
        scene: 1001,
        //如果是在开发者工具中，传当前的项目路径
        //传入根目录，则自动获取当前目录
        currProjectPath:process.cwd(),
    }, wx); */

}else{
    
    // 删除token
    localStorage.removeItem('token');

    const apps = createApp(App);
    apps.use(config)
    apps.use(ElementPlus)
    apps.mount('#app')

}



